﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuantitativeInvestment.Bean;
namespace QuantitativeInvestment.Factor
{
    class TurnOverFactor:Factor
    {

        public TurnOverFactor()
        {
            this.name = "换手率";

        }
    

        /// <summary>
        /// 给某只股票加入相应因子值
        /// </summary>
        /// <param name="stock"></param>
        /// <param name="para"></param>
        public override void addFactorValue(Stock stock)
        {

            if (!stock.factors.ContainsKey(this.name))
            {
                stock.factors.Add(this.name, this.dataModel.getStockTurnOverList(stock.startDate, stock.endDate, stock.code));
            }
        }
    }


}
